//
//  TableHeadView.m
//  SYPerfectDemo
//
//  Created by Lssyyy on 2018/9/5.
//  Copyright © 2018年 Lssyyy. All rights reserved.
//

#import "TableHeadView.h"

@implementation TableHeadView

- (instancetype)initWithFrame:(CGRect)frame
{
    if (self = [super initWithFrame:frame]) {
        [self setup];
    }
    return self;
}
- (instancetype)init{
    if (self = [super init]) {
        [self setup];
    }
    return self;
}

- (void)setup{
    self.backgroundColor = [UIColor cyanColor];
    _contentLb = [UILabel new];
    _contentLb.textColor = [UIColor blackColor];
    _contentLb.text = @"测试内容";
    _contentLb.numberOfLines = 0;
    [self addSubview:_contentLb];
    
    _contentLb.sd_layout
    .leftEqualToView(self)
    .topEqualToView(self)
    .rightEqualToView(self)
    .autoHeightRatio(0);
    [self setupAutoHeightWithBottomView:_contentLb bottomMargin:0];
}

@end
